/**
 * post方式请求
 * @param url {string} 请求地址
 * @param payload {Object} 数据内容
 * @return {Promise<Response>}
 */
export const doPost = async (url, payload) => {
  return await fetch(url, {
    method: "POST",
    credentials: "include",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    body: JSON.stringify(payload),
  });
};
